{% extends "root/templates/base.html" %}

{% block content %}
<h2>Field Set Listing</h2>
<div class="info">
  A field set is an ordered collection of fields that contains information
  about a person. This dataset currently contains the following field sets.
  Select the field sets you want to add to this spreadsheet.
</div>

<form action="/checkout/new" method="POST">
<table id="fieldset_list">
  <tr class="alt1">
    <td><input type="checkbox" checked=True readonly="True" name="fieldset" value="{{ default_primary.key }}" /></td>
    <td>{{ default_primary.verbose_name }}</td>
    <td><a href="/fieldsets/view?key={{ default_primary.key }}">View</a></td>
  </tr>
  {% for fieldset in fieldsets %}<tr class="{% cycle alt2,alt1 %}">
    <td><input type="checkbox" name="fieldset" value= "{{ fieldset.key }}" /></td>
    <td>{{ fieldset.verbose_name }}</td>
    <td><a href="/fieldsets/view?key={{ fieldset.key }}">View</a></td>
  </td>{% endfor %}
</table><br />
<input value="Checkout New Spreadsheet" type="submit">
<a href="/fieldsets/create">[ Make New Field Set ]</a>
</form>
{% endblock %}